<!DOCTYPE html>
<html lang="en">
<head>
  <!-- Basic Page Needs
  ================================================== -->
  <meta charset="utf-8">
  <!--[if IE]><meta http-equiv="x-ua-compatible" content="IE=9" /><![endif]-->
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>职到 - 职位，手到擒来！</title>
  <meta name="description" content="KIDS is a clean, modern, and fully responsive Html Template. Take your Startup business website to the next level. It is designed for kindergarten, childcare, homeschooling, school, learning, playground businesses or any type of person or business who wants to showcase their work, services and professional way.">
  <meta name="keywords" content="business, care, childcare, children, clean, corporate, happykids, homeschool, kids, kindergarten, playground, responsive, school, learning">
  <meta name="author" content="rometheme.net">

  <!-- ==============================================
  Favicons
  =============================================== -->
  <link rel="shortcut icon" href="images/favicon.ico">
  <link rel="apple-touch-icon" href="images/apple-touch-icon.png">
  <link rel="apple-touch-icon" sizes="72x72" href="images/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="114x114" href="images/apple-touch-icon-114x114.png">

  <!-- ==============================================
  CSS VENDOR
  =============================================== -->
  <link rel="stylesheet" type="text/css" href="https://cdn.bootcss.com/twitter-bootstrap/4.2.1/css/bootstrap.min.css">
  <link rel="stylesheet" type="text/css" href="http://www.jq22.com/jquery/font-awesome.4.6.0.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/owl.carousel.min.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/owl.theme.default.min.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/magnific-popup.css">
  <link rel="stylesheet" type="text/css" href="css/vendor/animate.min.css">

  <!-- ==============================================
  Custom Stylesheet
  =============================================== -->
  <link rel="stylesheet" type="text/css" href="css/style(qt).css" />

  <script src="js/vendor/modernizr.min.js"></script>
  <script type="text/javascript" src="/js/jquery-1.8.2.min.js"></script>
  <link rel="stylesheet" type="text/css" href="/css/style2.css">
  <script type="text/javascript" src="/js/script(biaoge).js"></script>
  <script src="/js/vue.js"></script>
  <script src="/js/axios.min.js"></script>

</head>

<body>
<div id="app">
  <!-- LOAD PAGE -->
  <div class="animationload">
    <div class="loader"></div>
  </div>

  <!-- BACK TO TOP SECTION -->
  <a href="#0" class="cd-top cd-is-visible cd-fade-out">Top</a>

  <!-- TOPBAR -->
  <div class="topbar">
    <div class="container">
      <div class="row align-items-center">
        <div class="col-sm-8 col-md-6">
          <div class="info">
            <div class="info-item">
              <i class="fa fa-phone"></i> +62 7144 3300
            </div>
            <div class="info-item">
              <i class="fa fa-envelope-o"></i> <a href="mailto:support@zhidao.com" title="">support@zhidao.com</a>
            </div>
          </div>
        </div>
        <div class="col-sm-4 col-md-6">

          <div class="sosmed-icon pull-right d-inline-flex">
            <a class="navbar-brand" href="my_company.html">
              <img src="images/company.png" alt="">
            </a>&nbsp;&nbsp;&nbsp;&nbsp;
            <a class="navbar-brand" href="help2.html">
              <img src="images/help.png" alt="">
            </a>
          </div>

        </div>
      </div>
    </div>
  </div>

  <!-- 导航栏 -->
  <div class="navbar-main" style="height:100px;">
    <div class="container">
      <nav id="navbar-example" class="navbar navbar-expand-lg">
        <a class="navbar-brand">
          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <img src="images/logo.png" alt="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
          <img src="images/slogan.png" alt="">
        </a>
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
          <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarNavDropdown">
          <ul class="navbar-nav ml-auto">
            <li class="nav-item">
              <a class="nav-link" href="index2.html">关于我们</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="talent.html">找人才</a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="my_company.html">发布</a>
            </li>


          </ul>
        </div>
      </nav> <!-- -->
    </div>
  </div>

  <!-- 此处是内容 -->
  <div style="height:300px;">

    <div class="demo">

      <div>
        <ul class="select" style="height:300px;">
          <li class="select-list" style="height:90px;">
            <dl id="select1">
              <dt>搜高校人才：</dt>


              <input type="text" v-model="resume_university"  name="resume_university" class="form-control" placeholder="请输入高校名称" style="height: 30px">
              <br>
              <a @click="queryUni()" class="btn-warning"><p style="color: #0b0b0b">查询</p></a>

            </dl>
          </li>
          <li class="select-list" style="height:90px;">
            <dl id="select2">
              <dt>个人技能：</dt>
              <input type="text" v-model="resume_skill"  name="resume_skill" class="form-control" placeholder="请输入相关技能，例如：Java" style="height: 30px">
              <br>
              <a @click="querySki()" class="btn-warning"><p style="color: #0b0b0b">查询</p></a>


            </dl>
          </li>
          <li class="select-list" style="height:90px;">
            <dl id="select3">
              <dt>既往经历：</dt>
              <input type="text" v-model="resume_experience"  name="resume_experience" class="form-control" placeholder="请输入需要的经历，例如：CET 6" style="height: 30px">
             <br>
              <a @click="queryExp()" class="btn-warning"><p style="color: #0b0b0b">查询</p></a>


            </dl>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!-- OUR EVENTS -->
  <div style="height:700px">

    <div class="section bgi-cover-center">

      <div class="content-wrap">

        <div class="container">
          <div style="font-size:15px;" style="float:left;">
            <p style="font-size: large;color: #0b0b0b">
              找人才>
            </p>


            <div class="row mt-4">

              <!-- Item 1 -->

              <div class="col-sm-12 col-md-12 col-lg-4 mb-5" v-for="(item,index) in resumeList">
                <div class="rs-news-1">

                  <div class="body-box">
                    <div class="title">{{item.resume_name}}</div>
                    <div style="color: #0b0b0b">
                      {{item.resume_sex}}&nbsp;/&nbsp;{{item.resume_place}}
                      <br>
                      <br>
                      {{item.resume_university}}&nbsp;/&nbsp;{{item.resume_degree}}
                    </div>
                    <div style="height: 200px;margin-top: 20px">
                      <p type="text" style="color:#000000">
                        {{item.resume_skill}}
                      </p>
                    </div>
                    <div style="width:90px">
                      <p type="text" style="background-color: #D3D3D3">

                      </p>
                    </div>
                    <div class="text-center">
                      <a class="btn btn-primary" @click="lookUp(item.resume_id);UpdateState(item.resume_post_id)"><p style="color: #0b0b0b;font-size: large">查看详情</p></a>
                    </div>

                  </div>
                </div>
              </div>



            </div>

          </div>
        </div>
      </div>
    </div>


    <div class="footer" data-background="images/bg.jpg">
      <div class="content-wrap">
        <div class="container">

          <div class="row">
            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <img src="images/logo.png" alt="logo bottom" class="logo-bottom">
                <div class="spacer-30"></div>
                <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy.</p>
                <a href="#"><i class="fa fa-angle-right"></i> Read More</a>
              </div>
            </div>

            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <div class="footer-title">
                  Contact Info
                </div>
                <ul class="list-info">
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-map-marker"></span>
                    </div>
                    <div class="info-text">99 S.t Jomblo Park Pekanbaru 28292. Indonesia</div> </li>
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-phone"></span>
                    </div>
                    <div class="info-text">(0761) 654-123987</div>
                  </li>
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-envelope"></span>
                    </div>
                    <div class="info-text">info@yoursite.com</div>
                  </li>
                  <li>
                    <div class="info-icon">
                      <span class="fa fa-clock-o"></span>
                    </div>
                    <div class="info-text">Mon - Sat 09:00 - 17:00</div>
                  </li>
                </ul>

              </div>
            </div>

            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <div class="footer-title">
                  Useful Links
                </div>

                <ul class="list">
                  <li><a href="index2.html" title="About us">关于我们</a></li>
                  <li><a href="help1.html" title="Contact Us">帮助</a></li>
                </ul>

              </div>
            </div>

            <div class="col-sm-3 col-md-3">
              <div class="footer-item">
                <div class="footer-title">
                  Get in Touch
                </div>
                <p>Lit sed The Best in dolor sit amet consectetur adipisicing elit sedconsectetur adipisicing</p>
                <div class="sosmed-icon d-inline-flex">
                  <a href="#" class="fb"><i class="fa fa-facebook"></i></a>
                  <a href="#" class="tw"><i class="fa fa-twitter"></i></a>
                  <a href="#" class="ig"><i class="fa fa-instagram"></i></a>
                  <a href="#" class="in"><i class="fa fa-linkedin"></i></a>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>

      <div class="fcopy">
        <div class="container">
          <div class="row">
            <div class="col-sm-12 col-md-12">
              <p class="ftex">Copyright 2019 &copy; <span class="color-primary">Kids HTML Template</span>. Designed by <span class="color-primary">Rometheme.</span></p>
            </div>
          </div>
        </div>
      </div>

    </div>

    <!-- JS VENDOR -->
    <script src="js/vendor/jquery.min.js"></script>
    <script src="js/vendor/bootstrap.min.js"></script>
    <script src="js/vendor/owl.carousel.js"></script>
    <script src="js/vendor/jquery.magnific-popup.min.js"></script>
    <script src="js/vendor/isotope.pkgd.min.js"></script>
    <script src="js/vendor/imagesloaded.pkgd.min.js"></script>

    <!-- SENDMAIL -->
    <script src="js/vendor/validator.min.js"></script>
    <script src="js/vendor/form-scripts.js"></script>

    <script src="js/script(qt).js"></script>
  </div>
</div>

</body>
</html>
<script>
  new Vue({
    el:"#app",
    data:{
      resumeList:[],
      uniList:[],
      skilist:[],
      expList:[],
      resume_university:'',
      resume_experience:'',
      company_id:'',
      resume_skill:'',
      resume_post_id:'',
    },
    methods:{
      queryUni:function () {
        _this = this
        var company_id = window.localStorage.getItem("company_id")
        axios.get('/resume/unilist', {
          params: {
            resume_university: this.resume_university,
            company_id:company_id
          }
        }).then(function (response) {
          _this.resumeList = response.data;
          console.log(response.data);
        })
                .catch(function (error) {
                  console.log(error);
                });
      },

      querySki:function () {
        _this = this
        var company_id = window.localStorage.getItem("company_id")
        axios.get('/resume/skilist', {
          params: {
            resume_skill: this.resume_skill,
            company_id:company_id
          }
        }).then(function (response) {
          _this.resumeList = response.data;
          console.log(response.data);
        })
                .catch(function (error) {
                  console.log(error);
                });
      },

      queryExp:function () {
        _this = this
        var company_id = window.localStorage.getItem("company_id")
        axios.get('/resume/explist', {
          params: {
            resume_experience: this.resume_experience,
            company_id:company_id
          }
        }).then(function (response) {
          _this.resumeList = response.data;
          console.log(response.data);

        })
                .catch(function (error) {
                  console.log(error);
                });
      },


      lookUp:function (resume_id){
        window.sessionStorage.setItem("resume_id",resume_id);
        // alert(resume_id)
        location.href="postItemC.html"
      },


      UpdateState:function(resume_post_id){
        window.sessionStorage.setItem("resume_post_id",resume_post_id);
        // alert(resume_post_id)
        axios.get('/post/update',{
          params:{
            resume_post_id:resume_post_id
          }
        }).then(function(response){
          console.log(response.data);
        }).catch(function(error){
          console.log(error)
        });
      }
    },
    mounted(){
      var _this = this
      var company_id = window.localStorage.getItem("company_id")
      console.log("主键为："+ company_id)
      axios.get('/resume/list',{
        params:{

          company_id:company_id
        }
      }).then(function(response){
        console.log(response.data);
        _this.resumeList=response.data;
      }).catch(function(error){
        console.log(error);
      });
    }
  })
</script>